|
dcmotor32 2.2.0
|
DC Motor 32 Click example. More...
Macros | |
| #define | MIKROBUS_POSITION_DCMOTOR32 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
DC Motor 32 Click example.
This example demonstrates the use of the DC Motor 32 Click board for controlling a DC motor. The application switches between different operation modes (forward, brake, reverse, and off) and measures the output current in each state.
The demo application is composed of two sections :
Initializes the logger and DC Motor 32 Click driver, and applies the default configuration.
Cycles through motor operation modes, measures the output current, and logs the results to the serial terminal.
| #define MIKROBUS_POSITION_DCMOTOR32 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |